
var $,
    layer;
layui.use(['jquery', 'layer'], function () {
    $ = layui.jquery,
        layer = layui.layer;

    var date = new Date();
    var yesr = date.getFullYear();
    var month = date.getMonth();
    var day = date.getDate();
    var hou = date.getHours();
    var min = date.getMinutes();
    var sec = date.getSeconds();
    $('#createDate').val(yesr + '年' + month + '月' + day + '日' + '  ' + hou + '时' + min + '分' + sec + '秒');
    $('input[name=createDate]').val(yesr + '-' + month + '-' + day + '-' + '  ' + hou + ':' + min + ':' + sec + ':');
});